package com.zmn.plat.model.entity.funswitch;

import com.zmn.common.utils.pager.Operator;

import java.util.Date;
import java.util.Objects;

/**
 * @author hedaiping
 * @version v1.0
 * @类说明：
 * @since 2018/10/16 11:30
 */
public class PublicBaseCodeMap extends Operator {
    private static final long serialVersionUID = 1L;
    private Integer mapId;

    /**
     * 名称
     */
    private String name;

    private Integer plat;

    private Integer oneTypeId;

    private Integer twoTypeId;

    private Integer threeTypeId;

    private String desc;

    /**
     * 状态：1停用，2启用
     */
    private Integer status;

    private String creater;

    private String updater;

    private Date createTime;

    private Date updateTime;


    public Integer getMapId() {
        return mapId;
    }

    public void setMapId(Integer mapId) {
        this.mapId = mapId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPlat() {
        return plat;
    }

    public void setPlat(Integer plat) {
        this.plat = plat;
    }

    public Integer getOneTypeId() {
        return oneTypeId;
    }

    public void setOneTypeId(Integer oneTypeId) {
        this.oneTypeId = oneTypeId;
    }

    public Integer getTwoTypeId() {
        return twoTypeId;
    }

    public void setTwoTypeId(Integer twoTypeId) {
        this.twoTypeId = twoTypeId;
    }

    public Integer getThreeTypeId() {
        return threeTypeId;
    }

    public void setThreeTypeId(Integer threeTypeId) {
        this.threeTypeId = threeTypeId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        PublicBaseCodeMap that = (PublicBaseCodeMap) o;
        return Objects.equals(mapId, that.mapId) &&
                Objects.equals(name, that.name) &&
                Objects.equals(plat, that.plat) &&
                Objects.equals(oneTypeId, that.oneTypeId) &&
                Objects.equals(twoTypeId, that.twoTypeId) &&
                Objects.equals(threeTypeId, that.threeTypeId) &&
                Objects.equals(status, that.status) &&
                Objects.equals(creater, that.creater) &&
                Objects.equals(updater, that.updater) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateTime, that.updateTime);
    }

    @Override
    public int hashCode() {

        return Objects.hash(mapId, name, plat, oneTypeId, twoTypeId, threeTypeId, status, creater, updater, createTime, updateTime);
    }

    @Override
    public String toString() {
        return "BaseCodeMap{" +
                "mapId=" + mapId +
                ", name='" + name + '\'' +
                ", plat=" + plat +
                ", oneTypeId=" + oneTypeId +
                ", twoTypeId=" + twoTypeId +
                ", threeTypeId=" + threeTypeId +
                ", status=" + status +
                ", creater='" + creater + '\'' +
                ", updater='" + updater + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}